home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
turbo_tk.arc
/
BOXDEM.PAS
next >
Wrap
Pascal/Delphi Source File
|
1988-02-01
|
1KB
|
39 lines
Program TestBoxes;
uses CRT, FastTTT;
var
I,X1,Y1,X2,Y2 : integer;
Ch : char;
begin
TextBackground(Lightgray);
Clrscr;
Box(1,1,80,25,white,lightgray,2);
For I := 1 to 100 do
begin
X1 := random(77);
X2 := X1 + random(80 - X1);
Y1 := random(22);
Y2 := Y1 + random(25 - Y1);
FBox(X1,Y1,X2,Y2,random(15),random(7),random(3)+1);
end;
ClearText(1,1,80,2,white,black);
WriteCenter(2,lightgray,black,'You just saw 100 (count ''em) boxes being displayed');
WriteCenter(1,white,black,'Press any key to see the Exploding box effect');
Ch := readkey;
ClearText(1,1,80,1,white,black);
GrowFbox(1,2,80,25,black,lightgray,1);
Delay(500);
GrowFbox(5,5,20,20,yellow,red,2);
Delay(500);
GrowFbox(10,18,80,25,white,blue,3);
Delay(500);
GrowFbox(20,4,70,16,lightgray,black,4);
Delay(500);
GrowFbox(50,5,60,23,black,cyan,1);
ClearText(1,1,80,1,white,black);
WriteCenter(1,white,black,'Too much ... press any key to continue');
WriteAT(1,24,white,black,'Run DemoTTT.exe for the main demo program');
WriteAT(1,25,white,black,'Technojocks Turbo Toolkit v4.0');
Ch := Readkey;
end.